//
//  FaceBaseItemViewController.h
//  FaceDiscernmentDemo
//
//  Created by mac on 2019/2/20.
//  Copyright © 2019年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CircleView.h"//圆形View


NS_ASSUME_NONNULL_BEGIN
//定义状态
typedef enum : NSUInteger{
    CommonStatus,
    PoseStatus,
    occlusionStatus
} WarningStatus;

@interface FaceBaseItemViewController : UIViewController

@property (nonatomic, readwrite, retain) UIImageView *displayImageView;//显示相机视频图片
@property (nonatomic, readwrite, assign) BOOL hasFinished;//是否完成
@property (nonatomic, readwrite, retain) UIImage* coverImage;//圆形图片
@property (nonatomic, readwrite, assign) CGRect previewRect;
@property (nonatomic, readwrite, assign) CGRect detectRect;
@property (nonatomic, readwrite, retain) CircleView * circleView;

@property (nonatomic,readwrite,copy) void(^successCompletion)(NSDictionary *imagesDict,UIImage *originImage);

//脸部信息变化
- (void)faceProcesss:(UIImage *)image;

- (void)closeAction;//关闭

- (void)onAppWillResignAction;//将要放弃本次采集
- (void)onAppBecomeActive;//在APP上激活
//根据错误状态放回错误信息
- (void)warningStatus:(WarningStatus)status warning:(NSString *)warning;
- (void)singleActionSuccess:(BOOL)success;//请求成功和失败的状态

@end

NS_ASSUME_NONNULL_END
